package parser;

import java.util.HashMap;
import java.util.Map;

public class Net {

	private String netName;
	private Map<String, InterfacePin> interface_net_pins;
	private Map<String, IOPin> io_net_pins;
	private double activity_factor;
	private double horizontal_bb;
	private double vertical_bb;

	public Net(Map<String, InterfacePin> interface_net_pins,
			Map<String, IOPin> io_net_pins, double activity_factor,
			double hor_bb, double ver_bb) {

		this.interface_net_pins = interface_net_pins;
		this.io_net_pins = io_net_pins;
		this.activity_factor = activity_factor;
		this.horizontal_bb = hor_bb;
		this.vertical_bb = ver_bb;
	}

	public Net() {
		this.interface_net_pins = new HashMap<String, InterfacePin>();
		this.io_net_pins = new HashMap<String, IOPin>();
		this.activity_factor = 0.0;
		this.horizontal_bb = 0.0;
		this.vertical_bb = 0.0;
	}

	public Map<String, InterfacePin> getInterface_net_pins() {
		return interface_net_pins;
	}

	public void setInterface_net_pins(
			Map<String, InterfacePin> interface_net_pins) {
		this.interface_net_pins = interface_net_pins;
	}

	public double getActivity_factor() {
		return activity_factor;
	}

	public void setActivity_factor(double activity_factor) {
		this.activity_factor = activity_factor;
	}

	public double getHor_bb() {
		return horizontal_bb;
	}

	public void setHor_bb(double max_bounding_box) {
		this.horizontal_bb = max_bounding_box;
	}

	public Map<String, IOPin> getIo_net_pins() {
		return io_net_pins;
	}

	public void setIo_net_pins(Map<String, IOPin> io_net_pins) {
		this.io_net_pins = io_net_pins;
	}

	public String getNetName() {
		return netName;
	}

	public void setNetName(String netName) {
		this.netName = netName;
	}

	public double getVertical_bb() {
		return vertical_bb;
	}

	public void setVertical_bb(double vertical_bb) {
		this.vertical_bb = vertical_bb;
	}

}
